package com.jindan.jdy.modules.sys.controller.login;

import com.jindan.jdy.common.utils.api.ResultVo;
import com.jindan.jdy.service.sys.SysService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/sys")
@Api("用户模块")
public class Login {

    @Reference(version = "${service.version}", check = false)
    private SysService sysService;

    @GetMapping("/login")
    @ApiOperation("工程搭建测试")
    public ResultVo  test(){
         Map<String,String > map = new HashMap<>();
        map.put("data","admin");
//        ResultVo resultVo =new ResultVo();
//        resultVo.setCode(200);
//        resultVo.setData("123456");
//        resultVo.setMessage("token");
        Map<String,String> map1 =new HashMap<>();
        map1.put("token","123456");
        return ResultVo.success(map1);
    }




}
